using System;

 namespace ClassEntities 
{
	 [Serializable]
	 public class tblMedia
	{
	private int stt;
	private string ten_media;
	private string media;
	private int mediatype_id;
	private int album_id;
	private DateTime ngayluu;
	private string kichthuoc;
	public tblMedia()
	{}
	public tblMedia(int stt,string ten_media,string media,int mediatype_id,int album_id,DateTime ngayluu,string kichthuoc)
	{
	this.stt = stt;
	this.ten_media = ten_media;
	this.media = media;
	this.mediatype_id = mediatype_id;
	this.album_id = album_id;
	this.ngayluu = ngayluu;
	this.kichthuoc = kichthuoc;
	}
	public int Stt{
	get { return this.stt;}
	set { if(value==null) 
		throw new Exception("stt not allow nullvalue.");
		this.stt=value;
	}	}
	public string Ten_media{
	get { return this.ten_media;}
	set {this.ten_media=value;}
	}
	public string Media{
	get { return this.media;}
	set {this.media=value;}
	}
	public int Mediatype_id{
	get { return this.mediatype_id;}
	set {this.mediatype_id=value;}
	}
	public int Album_id{
	get { return this.album_id;}
	set {this.album_id=value;}
	}
	public DateTime Ngayluu{
	get { return this.ngayluu;}
	set {this.ngayluu=value;}
	}
	public string Kichthuoc{
	get { return this.kichthuoc;}
	set {this.kichthuoc=value;}
	}
	public override string ToString(){
	return this.stt+"; "+this.ten_media+"; "+this.media+"; "+this.mediatype_id+"; "+this.album_id+"; "+this.ngayluu+"; "+this.kichthuoc+"; ";
	}
	public override bool Equals(Object obj)
	{
	tblMedia me=(tblMedia)obj;
	bool ret=this.Stt.Equals(me.Stt);
	return ret;
	}
	public override int GetHashCode()
	{
	return this.Stt.GetHashCode();
	}

	}
} 